package commandPattern;

import java.util.HashMap;
import java.util.Map;

/**
 * 接受者-数据操作类
 */
public class Order {

    // 订单号码
    private int dingTable;

    // 菜单及其数量
    private Map<String, Integer> foodDir = new HashMap<>();

    public int getDingTable() {
        return dingTable;
    }

    public void setDingTable(int dingTable) {
        this.dingTable = dingTable;
    }

    public Map<String, Integer> getFoodDir() {
        return foodDir;
    }

    public void setFoodDir(String name, int index) {
        foodDir.put(name, index);
    }
}
